#include <stdio.h>
#define cols 6
#define rows 5
void copy_arr(double [][cols], const double [][cols], int, int);
int main(void)
{
	const double source[rows][cols]= 
	{
		{1.1, 2.2, 3.3, 4.4, 5.5, 6.6},
		{1.2, 2.2, 3.3, 4.4, 5.5, 6.6},
		{1.4, 2.4, 3.4, 4.4, 5.4, 6.4},
		{2.3, 2.5, 2.7, 2.9, 2.6, 2.4},
		{8.1, 8.2, 8.6, 8.4, 8.5, 9.4}		
	};
	double ar[rows][cols];
	copy_arr(ar, source, rows, cols);
	int i,j;
	for(i =0; i <rows; i++){
		for(j =0; j <cols; j++){
			printf("%0.2lf\t", ar[i][j]);
			if(j == cols-1){
				printf("\n");
			}			
		}
	}
	return 0;
}
void copy_arr(double ar[][cols], const double source[][cols], int row, int col)
{
	int i,j;
	for(i =0; i <row; i++){
		for(j =0; j <col; j++)
			ar[i][j] = source[i][j];
	}

	return;
}
